package com.ruoyi.hotel.mapper;

import java.util.List;
import com.ruoyi.hotel.domain.HlRoomPrice;
import org.apache.ibatis.annotations.Param;

/**
 * 房间计费Mapper接口
 * 
 * @author ruoyi
 * @date 2022-12-10
 */
public interface HlRoomPriceMapper 
{
    /**
     * 查询房间计费
     * 
     * @param id 房间计费主键
     * @return 房间计费
     */
    public HlRoomPrice selectHlRoomPriceById(Integer id);

    /**
     * 查询房间计费根据房间类型id,num查出钟点数据
     *
     * @param roomTypeId,num 房间计费主键
     * @return 房间计费
     */
    public HlRoomPrice selectHlRoomPriceStayForZeroByRoomTypeIdAndNum(@Param("roomTypeId") Integer roomTypeId,@Param("num") Integer num);

    /**
     * 查询房间计费根据房间类型id,num查出夜宿数据
     *
     * @param roomTypeId,num 房间计费主键
     * @return 房间计费
     */
    public HlRoomPrice selectHlRoomPriceStayForOneByRoomTypeIdAndNum(@Param("roomTypeId") Integer roomTypeId,@Param("num") Integer num);

    /**
     * 查询房间计费列表
     * 
     * @param hlRoomPrice 房间计费
     * @return 房间计费集合
     */
    public List<HlRoomPrice> selectHlRoomPriceList(HlRoomPrice hlRoomPrice);

    /**
     * 新增房间计费
     * 
     * @param hlRoomPrice 房间计费
     * @return 结果
     */
    public int insertHlRoomPrice(HlRoomPrice hlRoomPrice);

    /**
     * 修改房间计费
     * 
     * @param hlRoomPrice 房间计费
     * @return 结果
     */
    public int updateHlRoomPrice(HlRoomPrice hlRoomPrice);

    /**
     * 删除房间计费
     * 
     * @param id 房间计费主键
     * @return 结果
     */
    public int deleteHlRoomPriceById(Long id);

    /**
     * 批量删除房间计费
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHlRoomPriceByIds(Long[] ids);


}
